package com.lzw.breezeNovel.model.entity.pojo.video;

import com.lzw.breezeNovel.model.entity.pojo.user.UserInfo;
import com.lzw.breezeNovel.model.entity.query.BaseQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 清风明月
 * @Package com.lzw.breezeNovel.model.entity.pojo
 * @date 2025/3/15
 * @description 短视频实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuppressWarnings("all")
public class ShortVideo extends BaseQuery {

    @Schema(description = "短视频ID，主键，自增")
    private Integer shortVideoId;

    @Schema(description = "短视频标题")
    private String title;

    @Schema(description = "短视频描述")
    private String description;

    @Schema(description = "短视频时长，单位为秒")
    private Integer duration;

    @Schema(description = "上传时间，默认为当前时间")
    private Date uploadTime;

    @Schema(description = "短视频封面图片URL")
    private String coverImage;

    @Schema(description = "播放次数，默认为0")
    private Integer playCount;

    @Schema(description = "短视频文件URL")
    private String videoUrl;

    @Schema(description = "拍摄地点")
    private String location;

    @Schema(description = "上传用户ID，外键关联用户表")
    private Long userId;

    @Schema(description = "点赞数")
    private Integer likeCount;

    @Schema(description = "分享")
    private Integer share;

    @Schema(description = "发布的人")
    private UserInfo userInfo;

    @Schema(description = "是否点赞")
    private Boolean isLike;

    @Schema(description = "是否互相关注")
    private Boolean isEachOther;
}